package com.zh.article;

import com.zh.creature.Creature;

/**
 * @description:
 * @author: zhangHang
 * @date: Created in 2020/5/24 10:36
 * @version: 1.0
 * @modified By:
 */
public abstract class Drug extends Article{
    private int effectPoints;

    public Drug(){}

    public Drug(int effectPoints) {
        this.effectPoints = effectPoints;
    }

    public Drug(String id, String description, int effectPoints) {
        super(id, description);
        this.effectPoints = effectPoints;
    }

    public abstract void useDrug(Creature targetCreature);

    public int getEffectPoints() {
        return effectPoints;
    }

    public void setEffectPoints(int effectPoints) {
        this.effectPoints = effectPoints;
    }
}
